/**
 * creation: 9-mrt-2006
 */
package org.jfonia.rhythm;


/**
 * @author Wijnand
 * 
 * class representing a time signature (measure structure)
 * 
 * TODO: compound or exotic measures...
 */
public class MetricInfo 
{
	public MetricInfo(int beatCount, int beatTickCount, int upbeatTickCount) 
	{
		this.beatCount = beatCount;
		this.beatTickCount = beatTickCount; 
		this.upbeatTickCount = upbeatTickCount; 
	}

	/*
	public void init(int beatCount, int beatDuration, int upbeatDuration)
	{
		this.beatCount = beatCount;
		this.beatTickCount = beatDuration; 
		this.upbeatDuration = upbeatDuration; 
	}
	*/
	
	public int getBeatCount()
	{
		return beatCount;
	}
	
	public int getBeatTickCount()
	{
		return beatTickCount;
	}
	
	public int getUpbeatTickCount()
	{
		return upbeatTickCount;
	}
	
	public int getMeasureTickCount()
	{
		return beatCount*beatTickCount;
	}
	
	protected int   beatCount;		// number of beats per measure
	protected int   beatTickCount;	// duration of one beat
	protected int   upbeatTickCount; // duration of upbeat

}
